﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace psafth.FSR.Lapcounter
{
    public class Settings
    {
        public static string IPAdress
        {
            get
            {
                return Properties.Settings.Default.DecoderAddress;
            }
            set
            {
                Properties.Settings.Default.DecoderAddress = value;
                Properties.Settings.Default.Save();
            }
        }

        public static int Port
        {
            get
            {
                return Properties.Settings.Default.DecoderPort;
            }
            set
            {
                Properties.Settings.Default.DecoderPort = value;
                Properties.Settings.Default.Save();
            }
        }

        public static string SerialPort
        {
            get
            {
                return Properties.Settings.Default.SerialPort;
            }
            set
            {
                Properties.Settings.Default.SerialPort = value;
                Properties.Settings.Default.Save();
            }
        }
    }
}
